import HttpUtil from '../utils/httpUtil.js'

/*班级的相关接口*/
export default {
    /*获取全部班级*/
    getClasses(callback) {
        HttpUtil.get({
            uri: '/api/getClasses/1/999', success: (data) => {
                callback(data);
            }
        });
    },
    /*根据班级id查询班级*/
    getClass(id, callback) {
        HttpUtil.get({
            uri: '/api/getClass/' + id, success: (data) => {
                callback(data);
            }
        });
    },
    //根据学生id查询班级
    getClassesByStudentId(id, callback) {
        HttpUtil.get({
            uri: '/api/getClassesByStudentId/' + id, success: (data) => {
                callback(data);
            }
        });
    }
}

